/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aiaudio.database.tables;

import aiaudio.database.Family;
import org.apache.hadoop.hbase.client.Put;

/**
 *
 * @author nastya
 */
public class ReduceResultTable extends TableStructure {

    private static final Family COORDINATES = new Family("c");
    private static final Family DISTANCE = new Family("d");

    public static void addCoordinateInDictionary(Put put, byte[] dictionaryNumBytes, byte[] coordinateNumBytes, byte[] distanceBytes) {
        put.add(COORDINATES.getNameAsBytes(), dictionaryNumBytes, distanceBytes);
        put.add(ReduceResultTable.DISTANCE.getNameAsBytes(), dictionaryNumBytes, distanceBytes);

    }

    @Override
    public Family[] getAllFamilies() {
        return new Family[]{COORDINATES, DISTANCE};
    }
}
